package com.jiangjun.fetch.common;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.jiangjun.fetch.FetchRss;

public class WebContext {
	
	private String parentId;
	
	private String parentName;

	private String id;
	
	private String url;

	private String xpath;
	
	private String des;

	private Object content;

	private int flag = 0;// 0是未抓取，1是抓取成功，2是失败

	private String charset;
	
	private String path ;
	
	private List<ImageFetch> imgList = new ArrayList<ImageFetch>();
	
	private String type ;//1是图片，2是文本
	
	private String lastUpdateTime;
	
	private int imgCount = 0;
	
	private String isRssXml;//是否是Xml格式的Rss源,1为是，0为否
	
	private FetchRss fetch;
	
	private String img_db_path = "";//"0.jpg;1.png;2"
	
	private String min_img_db_path;//缩略图路径
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getXpath() {
		return xpath;
	}

	public void setXpath(String xpath) {
		this.xpath = xpath;
	}

	public Object getContent() {
		return content;
	}

	public void setContent(Object content) {
		this.content = content;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public List<ImageFetch> getImgList() {
		return imgList;
	}

	public void setImgList(List<ImageFetch> imgList) {
		this.imgList = imgList;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public int getImgCount() {
		return imgCount;
	}

	public void setImgCount(int imgCount) {
		this.imgCount = imgCount;
	}

	public String getIsRssXml() {
		return isRssXml;
	}

	public void setIsRssXml(String isRssXml) {
		this.isRssXml = isRssXml;
	}

	public FetchRss getFetch() {
		return fetch;
	}

	public void setFetch(FetchRss fetch) {
		this.fetch = fetch;
	}

	public String getImg_db_path() {
		return img_db_path;
	}

	public void setImg_db_path(String img_db_path) {
		this.img_db_path = img_db_path;
	}

	public String getMin_img_db_path() {
		return min_img_db_path;
	}

	public void setMin_img_db_path(String min_img_db_path) {
		this.min_img_db_path = min_img_db_path;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

}
